<view id='page_view'>
<view>
    <label class="msg">选择地址</label>
    <view id='address_view'>
        <label wx:if="{{item.name!=''}}" class="addList" wx:for="{{addList}}" bindtap='chooseAdd' data-code='{{index}}'>
        	{{item.name}}
            <image  class='select_style' src="{{urlAddress}}/{{item.imgurl}}.png"></image>
            <!-- <image  class='select_style' src="{{urlAddress}}/pay_unselect.png"></image> -->
        </label>

    </view>
</view>
<view  wx:if="{{type==2}}">
    <label class="msg">详细地址</label>
    <view>
        <input confirm-type='done'  value="{{address}}" bindinput='changeValue' placeholder-style="color:#bbb"  maxlength="50" placeholder="请输入详细地址(50字以内)" value="{{addressDetail?addressDetail:''}}"/>
    </view>
</view>

<view class="default-address clearfix"  wx:if="{{type==2}}">
    <label>默认地址</label>
    <switch class="switch" checked="{{isDefault}}" data-type='0' bindchange="switchChange"/>
</view>
<view id='makeSure' bindtap='turnAction'>确定</view>
</view>